package com.liangwj.springbootdesignpatterns.structureTypePatterns.composite.demo_2;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;

/**
 * <b>Description:</b> 公司的抽象类, 也可以写成接口 <br/>
 * @author Lingwenjun
 * @date 2019/1/28-16:00
 * @version 1.0
 */
public abstract class Company {

    String name;
    String sex;
    String position;
    BigDecimal salary;

    //
    List<Company> list = new ArrayList<>();

    //获取信息
    public abstract String getInfo();
}
